

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName"
	value="${message(code: 'subTask.label', default: 'SubTask')}" />
<title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>
<div class="nav"><span class="menuButton"><a class="home"
	href="${createLink(uri: '/')}">Home</a></span> <g:ifAllGranted
	role="ROLE_ADMIN">
	<span class="menuButton"><g:link class="create" action="create">
		<g:message code="default.new.label" args="[entityName]" />
	</g:link></span>
</g:ifAllGranted></div>
<div class="body">
<h1><g:message code="default.list.label" args="[entityName]" /></h1>
<g:if test="${flash.message}">
	<div class="message">
	${flash.message}
	</div>
</g:if>
<div class="list">
<table>
	<thead>
		<tr>

			<g:sortableColumn property="id"
				title="${message(code: 'subTask.id.label', default: 'Id')}" />

			<g:sortableColumn property="task.id"
				title="${message(code: 'subTask.task.name.label', default: 'Task')}" />

			<g:sortableColumn property="phaseName"
				title="${message(code: 'subTask.phaseName.label', default: 'Phase Name')}" />

			<g:sortableColumn property="estimatedTime"
				title="${message(code: 'subTask.estimatedTime.label', default: 'Estimated Time')}" />

			<g:sortableColumn property="unitForPhase"
				title="${message(code: 'subTask.unitForPhase.label', default: 'Unit For Phase')}" />

		</tr>
	</thead>
	<tbody>
		<g:each in="${subTaskInstanceList}" status="i" var="subTaskInstance">
			<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

				<td><g:link action="show" id="${subTaskInstance.id}">
					${fieldValue(bean: subTaskInstance, field: "id")}
				</g:link></td>

				<td>
				${fieldValue(bean: subTaskInstance, field: "task.name")}
				</td>
				
				<td>
				${fieldValue(bean: subTaskInstance, field: "phaseName")}
				</td>

				<td>
				${fieldValue(bean: subTaskInstance, field: "estimatedTime")}
				</td>



				<td>
				${fieldValue(bean: subTaskInstance, field: "unitForPhase")}
				</td>

			</tr>
		</g:each>
	</tbody>
</table>
</div>
<div class="paginateButtons"><g:paginate
	total="${subTaskInstanceTotal}" /></div>
</div>
</body>
</html>
